package cn.tianwt.proxy;

import cn.tianwt.proxy.ServerThread.Builder;
import cn.tianwt.proxy.http.utils.Configs;

public class Starter {

	public static void main(String[] args) {
		try {
			Application application = new Application();
			
			Builder builder = new ServerThread.Builder();
			builder.attach(application);
			builder.soTimeout(Configs.CONNECT_TIMEOUT);
			builder.isDeamon(false);
			builder.port(8888);
			builder.priority(Thread.MAX_PRIORITY);
			ServerThread server = builder.build();
			server.start();
			
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	
}
